import Vue from 'vue'
import Vuex from 'vuex'
import golbalState from '@/store/global/state'
import golbalGetters from '@/store/global/getters'
import golbalMutations from '@/store/global/mutations'
import golbalActions from '@/store/global/actions'
import repairStore from '@/store/repairStore/repairModules'
import baojieModules from '@/store/baojieModules/baojieModules'
import personModules from '@/store/person/personModules'

Vue.use(Vuex)

export default () => {
    return new Vuex.Store({
        state: golbalState,
        actions: golbalActions,
        mutations: golbalMutations,
        getters: golbalGetters,
        modules: {
            repairModule: repairStore,
            baojieModules: baojieModules,
            personModules: personModules
        }
    })
}